package com.example.health.ui.activity

import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.view.View
import com.example.health.R
import kotlinx.android.synthetic.main.activity_manager.*

class ManagerActivity : AppCompatActivity(), View.OnClickListener {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_manager)
        initListener()
    }

    private fun initListener() {
        btnSetting1.setOnClickListener(this)
        btnSetting2.setOnClickListener(this)
        btnSetting3.setOnClickListener(this)
        btnSetting4.setOnClickListener(this)
        btnSetting5.setOnClickListener(this)
        btnSetting6.setOnClickListener(this)
        btnSetting7.setOnClickListener(this)
        btnSetting8.setOnClickListener(this)
        btnExit.setOnClickListener(this)
    }

    override fun onClick(p0: View?) {
        when (p0?.id) {
            R.id.btnSetting1 -> {

            }
            R.id.btnSetting2 -> {

            }
            R.id.btnSetting3 -> {

            }
            R.id.btnSetting4 -> {

            }
            R.id.btnSetting5 -> {

            }
            R.id.btnSetting6 -> {

            }
            R.id.btnSetting7 -> {

            }
            R.id.btnSetting8 -> {

            }
            R.id.btnExit -> {
                finish()
            }
        }
    }
}